﻿using System;
using System.Collections.Generic;
using System.Text;
using DailyDiet.Services;
using DailyDiet.Services.Impl;
using NUnit.Framework;

namespace DailyDietTest.Helper
{
    public static class DietToDietAndPictureServiceTestHelper {
        private static IDietToDietAndPictureService
            _dietToDietAndPictureService;
        public static IDietToDietAndPictureService GetInitializedDietToDietAndPictureService() {
            if (_dietToDietAndPictureService != null) {
                return _dietToDietAndPictureService;
            }
            IDietPictureService dietPictureService = DietPictureServiceHelper
                .GetAInitializedGetDietPictureService();
            _dietToDietAndPictureService =
                new DietToDietAndPictureService(dietPictureService);
            return _dietToDietAndPictureService;
        }
    }
}
